<!-- 操作日志 列表-->


<div class="wrapper-sm">
    <div class="panel panel-default">
        <div class="row wrapper">
            <div class="col-sm-10 m-b-xs">
                <form class="form-inline" role="form">
                    <div class="form-group m-r-xs">
                        <input class="form-control input-sm" placeholder="名称" ng-model="params.name">
                    </div>
                    <div class="form-group">
                        <input class="form-control input-sm" placeholder="描述" ng-model="params.remarks">
                    </div>
                    <button type="submit" class="btn btn-sm btn-default" ng-click="search()">搜索</button>
                </form>
            </div>
            <div class="col-sm-2">
                <button ui-sref="app.syslog.form" class="btn btn-sm btn-default pull-right m-r-md"
                        ng-if="hasAuthority('syslog:save')">新建
                </button>
            </div>
        </div>

        <div class="table-responsive">
            <table class="table table-striped table-bordered table-condensed text-nowrap">
                <thead>
                <tr class="b-t b-light">
                    <th ui-order-column="a.description">操作</th>
                    <th ui-order-column="a.username">用户</th>
                    <th ui-order-column="a.startTime">操作时间</th>
                    <th ui-order-column="a.spendTime">消耗时间</th>
                    <th ui-order-column="a.basePath">根路径</th>
                    <th ui-order-column="a.uri">URI</th>
                    <th ui-order-column="a.url">URL</th>
                    <th ui-order-column="a.method">请求类型</th>
                    <th ui-order-column="a.parameter">参数</th>
                    <th ui-order-column="a.userAgent">用户标识</th>
                    <th ui-order-column="a.ip">IP地址</th>
                    <th ui-order-column="a.result"></th>
                    <th ui-order-column="a.permissions">权限值</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in pageInfo.list">
                    <td >{{item.description}}</td>
                    <td >{{item.username}}</td>
                    <td>{{item.startTime | date : 'yyyy-MM-dd H:mm:ss'}}</td>
                    <td>{{item.spendTime}}</td>
                    <td>{{item.basePath}}</td>
                    <td >{{item.uri}}</td>
                    <td >{{item.url}}</td>
                    <td>{{item.method}}</td>
                    <td>{{item.parameter}}</td>
                    <td>{{item.userAgent}}</td>
                    <td>{{item.ip}}</td>
                    <td>{{item.result}}</td>
                    <td>{{item.permissions}}</td>
                </tr>
                </tbody>
            </table>
        </div>

        <!-- 底部分页 -->
        <span data-ng-include=" 'tpl/blocks/pagination.html' "></span>
    </div>
</div>

